var appid = '';
var url = '';
App({
  onLaunch: function () {
    //调用API从本地缓存中获取数据
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs);


      wx.getSystemInfo({
        success: e => {
          this.globalData.StatusBar = e.statusBarHeight;
          this.globalData.CustomBar = e.platform == 'android' ? e.statusBarHeight + 50 : e.statusBarHeight + 45;
        }
      })
  },
  onShow: function () {
    var that = this;
    var requrl = that.wechatUrl.do(that.siteInfo, 'title');
  },
  util: require('we7/resource/js/util.js'),
  siteInfo: require('siteinfo.js'),

  wechatUrl: require('wechatUrl'),
  do: function (action) {
    var that = this;
    return that.wechatUrl.do(that.siteInfo, action);
  },
  globalData: {
    userInfo: null,
  },

  getGlobalData: function (callback) {
    callback()
  },

  // template: require('sjtc_cfticket/pages/template/template.js'),

  // "tabBar": {
  //   "color": "#8a8a8a",
  //   "selectedColor": "#66afb1",
  //   "backgroundColor": "#fff",
  //   "list": [
  //     {
  //       "linktype": 'in',
  //       "pagePath": "/sjtc_cfticket/pages/index/index",
  //       "text": "首页",
  //       "iconPath": "/sjtc_cfticket/images/home.png",
  //       "selectedIconPath": "/sjtc_cfticket/images/homeSelect.png"
  //     },
  //     {
  //       "linktype": 'in',
  //       "pagePath": "/sjtc_cfticket/pages/yearPass/yearPass",
  //       "text": "年票",
  //       "iconPath": "/sjtc_cfticket/images/home.png",
  //       "selectedIconPath": "/sjtc_cfticket/images/homeSelect.png"
  //     },
  //     {
  //       "linktype": 'in',
  //       "pagePath": "/sjtc_cfticket/pages/ticketins/ticketins",
  //       "text": "验票",
  //       "iconPath": "/sjtc_cfticket/images/home.png",
  //       "selectedIconPath": "/sjtc_cfticket/images/homeSelect.png"
  //     },
  //     {
  //       "linktype": 'in',
  //       "pagePath": "/sjtc_cfticket/pages/announcement/announcement",
  //       "text": "公告",
  //       "iconPath": "/sjtc_cfticket/images/home.png",
  //       "selectedIconPath": "/sjtc_cfticket/images/homeSelect.png"
  //     },
  //     {
  //       "linktype": 'in',
  //       "pagePath": "/sjtc_cfticket/pages/center/center",
  //       "text": "我的",
  //       "iconPath": "/sjtc_cfticket/images/home.png",
  //       "selectedIconPath": "/sjtc_cfticket/images/homeSelect.png"
  //     },
  //   ]
  // }
});